﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SearchResults.aspx.cs" Inherits="BuyLocalBonds.WebForm1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2 align="center">
        Buy Local Bonds: Bonds for Purchase</h2>
    <p>
        <strong>Select bond for purchase</strong></p>
        
    <asp:Label ID="MessageLabelEmpty" ForeColor="Red" runat="server" ></asp:Label>

    <asp:GridView ID="SearchBondResultsGV" DataKeyNames="CUSIP" OnSelectedIndexChanged="SelectedIndexChanged"
        AutoGenerateColumns="false" AutoGenerateSelectButton="true" runat="server">

        <SelectedRowStyle ForeColor="DarkBlue" Font-Bold="true" />

        <Columns>
            <asp:BoundField DataField="CUSIP" HeaderText="CUSIP" ReadOnly="true" />
            <asp:BoundField DataField="bondName" HeaderText="Bond Name" ReadOnly="true" />
            <asp:BoundField DataField="rating" HeaderText="Rating" ReadOnly="true" />
            <asp:BoundField DataField="coupon" HeaderText="Coupon" ReadOnly="true" />
            <asp:BoundField DataField="currentYield" HeaderText="Current Yield" ReadOnly="true" />
            <asp:BoundField DataField="YTM" HeaderText="Yield to Maturity" ReadOnly="true" />
            <asp:BoundField DataField="muturityDate" HeaderText="Maturity Date" ReadOnly="true" />
            <asp:BoundField DataField="parVal" HeaderText="Par Value" ReadOnly="true" />
            <asp:BoundField DataField="price" HeaderText="Price" ReadOnly="true" />
            <asp:BoundField DataField="issuer" HeaderText="Issuer" ReadOnly="true" />
            <asp:BoundField DataField="qty" HeaderText="Quantity Available" ReadOnly="true" />
<%--            <asp:BoundField DataField="background" HeaderText="background" ReadOnly="true" />
            <asp:BoundField DataField="nes" HeaderText="nes" ReadOnly="true" />
--%>            <asp:BoundField DataField="trans" HeaderText="Transaction Time" ReadOnly="true" />
        </Columns>

    </asp:GridView>
    <asp:Label ID="MessageLabel" ForeColor="Black" runat="server" />
    </br> </br>

  <div>
     <div style="float:left;">
        <asp:Button ID="BackToSearchButton" Border="1px" BackColor="#ADBBCA" 
            BorderColor="Black" runat="server"
            Text="Back to Search" Height="33px" Width="102px" 
            onclick="BackToSearchButton_Click" />
     </div>

     <div align="center">
        <asp:Button ID="BuyButton" runat="server" Text="Buy Bond" 
            Border="1px" BackColor="#ADBBCA" BorderColor="Black" 
            OnClick="BuyButton_Click" Height="33px" Width="102px" />
     </div>

     <div style="clear:both"></div>

</div>
    
</asp:Content>
